﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gedea.Model.Entities;
using Gedea.Core.Repositories;

namespace Gedea.Service.Services
{
    public class UserService
    {
        #region Public Methods

        public void GetCurrentUser()
        {
            Credentials.currentUser = new UserRepository().Get();
        }

        public void Update(User user)
        {
            new UserRepository().Update(user);

            GetCurrentUser();
        }

        public void Add(User user)
        {
            new UserRepository().Add(user);

            GetCurrentUser();
        }

        #endregion


        #region Private Methods

        

        #endregion
    }
}
